<script setup>
import {ref} from "vue";

const searchParams = ref({
	param:''
})

let listNub = 0
const getTableData = (res, data)=>{
	console.log(data)
	listNub = data.length
}

const tableRef = ref(null)


</script>

<template>
	<el-container>
		<el-main class="nopadding">
			<scTable ref="tableRef" :apiObj="list.apiObj"  :params="searchParams" @dataChange="getTableData" :hidePagination="true"
					 stripe>
				<el-table-column align="center" label="编号" type="index" width="60"/>
				<el-table-column
					label="姓名"
					prop="cn">
				</el-table-column>
				<el-table-column align="center" label="职位" prop="levelName"/>
				<el-table-column align="center" label="邮箱" prop="email" />
			</scTable>
		</el-main>
	</el-container>
</template>

<script>

export default {
	name: 'tableBase',
	data() {
		return {
			list: {
				apiObj: this.$API.team.list
			}
		}
	},
}
</script>

<style lang="scss" scoped>
.form-select {
	width: 100%;
}
</style>
